﻿// bobby

using System;
using System.Windows.Forms;

namespace Texpro
{
    
    class PCREP
    {
        
        public static string m_local_report_path;
        public static string m_local_report_file;
        
        // ADVICE
        
        public static bool open_RPTR101()
        {
            try
            {
                m_local_report_file = "RPTR101.rpt";
                Form ClientForm = new FMMN104();
                ClientForm.Tag = "RPTR101";
                ClientForm.Text = "Yarn Purchase Slip";
                ClientForm.ShowDialog();
                return true;
            }
            catch (Exception e)
            {
                PCMSG.ShowError(e);
                return false;
            }
        }

        public static bool open_RPTR111()
        {
            try
            {
                m_local_report_file = "RPTR111.rpt";
                Form ClientForm = new FMMN104();
                ClientForm.Tag = "RPTR111";
                ClientForm.Text = "Yarn Sales Slip";
                ClientForm.ShowDialog();
                return true;
            }
            catch (Exception e)
            {
                PCMSG.ShowError(e);
                return false;
            }
        }

        public static bool open_RPTR121()
        {
            try
            {
                m_local_report_file = "RPTR121.rpt";
                Form ClientForm = new FMMN104();
                ClientForm.Tag = "RPTR121";
                ClientForm.Text = "Yarn Material Inward Slip";
                ClientForm.ShowDialog();
                return true;
            }
            catch (Exception e)
            {
                PCMSG.ShowError(e);
                return false;
            }
        }

        public static bool open_RPTR201()
        {
            try
            {
                m_local_report_file = "RPTR201.rpt";
                Form ClientForm = new FMMN104();
                ClientForm.Tag = "RPTR201";
                ClientForm.Text = "Dyeing Outward Slip";
                ClientForm.ShowDialog();
                return true;
            }
            catch (Exception e)
            {
                PCMSG.ShowError(e);
                return false;
            }
        }

        public static bool open_RPTR211()
        {
            try
            {
                m_local_report_file = "RPTR211.rpt";
                Form ClientForm = new FMMN104();
                ClientForm.Tag = "RPTR211";
                ClientForm.Text = "Dyeing Inward Slip";
                ClientForm.ShowDialog();
                return true;
            }
            catch (Exception e)
            {
                PCMSG.ShowError(e);
                return false;
            }
        }

        public static bool open_RPTR301()
        {
            try
            {
                m_local_report_file = "RPTR301.rpt";
                Form ClientForm = new FMMN104();
                ClientForm.Tag = "RPTR301";
                ClientForm.Text = "Weaving Outward Slip";
                ClientForm.ShowDialog();
                return true;
            }
            catch (Exception e)
            {
                PCMSG.ShowError(e);
                return false;
            }
        }

        public static bool open_RPTR311()
        {
            try
            {
                m_local_report_file = "RPTR311.rpt";
                Form ClientForm = new FMMN104();
                ClientForm.Tag = "RPTR311";
                ClientForm.Text = "Weaving Inward Slip";
                ClientForm.ShowDialog();
                return true;
            }
            catch (Exception e)
            {
                PCMSG.ShowError(e);
                return false;
            }
        }

        public static bool open_RPTR321()
        {
            try
            {
                m_local_report_file = "RPTR321.rpt";
                Form ClientForm = new FMMN104();
                ClientForm.Tag = "RPTR321";
                ClientForm.Text = "Weaving Adjustment Slip";
                ClientForm.ShowDialog();
                return true;
            }
            catch (Exception e)
            {
                PCMSG.ShowError(e);
                return false;
            }
        }

        public static bool open_RPTR401()
        {
            try
            {
                m_local_report_file = "RPTR401.rpt";
                Form ClientForm = new FMMN104();
                ClientForm.Tag = "RPTR401";
                ClientForm.Text = "Washing Outward Slip";
                ClientForm.ShowDialog();
                return true;
            }
            catch (Exception e)
            {
                PCMSG.ShowError(e);
                return false;
            }
        }

        public static bool open_RPTR411()
        {
            try
            {
                m_local_report_file = "RPTR411.rpt";
                Form ClientForm = new FMMN104();
                ClientForm.Tag = "RPTR411";
                ClientForm.Text = "Washing Inward Slip";
                ClientForm.ShowDialog();
                return true;
            }
            catch (Exception e)
            {
                PCMSG.ShowError(e);
                return false;
            }
        }

        public static bool open_RPTR501()
        {
            try
            {
                m_local_report_file = "RPTR501.rpt";
                Form ClientForm = new FMMN104();
                ClientForm.Tag = "RPTR501";
                ClientForm.Text = "Tailoring Outward Slip";
                ClientForm.ShowDialog();
                return true;
            }
            catch (Exception e)
            {
                PCMSG.ShowError(e);
                return false;
            }
        }

        public static bool open_RPTR511()
        {
            try
            {
                m_local_report_file = "RPTR511.rpt";
                Form ClientForm = new FMMN104();
                ClientForm.Tag = "RPTR511";
                ClientForm.Text = "Tailoring Inward Slip";
                ClientForm.ShowDialog();
                return true;
            }
            catch (Exception e)
            {
                PCMSG.ShowError(e);
                return false;
            }
        }

        public static bool open_RPTR601()
        {
            try
            {
                m_local_report_file = "RPTR601.rpt";
                Form ClientForm = new FMMN104();
                ClientForm.Tag = "RPTR601";
                ClientForm.Text = "Payment Slip";
                ClientForm.ShowDialog();
                return true;
            }
            catch (Exception e)
            {
                PCMSG.ShowError(e);
                return false;
            }
        }

        public static bool open_RPTR602()
        {
            //try
            //{
            //    m_local_report_file = "RPTR602.rpt";
            //    Form ClientForm = new FMMN104();
            //    ClientForm.Tag = "RPTR602";
            //    ClientForm.Text = "Receipt Slip";
            //    ClientForm.ShowDialog();
            //    return true;
            //}
            //catch (Exception e)
            //{
            //    PCMSG.ShowError(e);
            return false;
            //}
        }

        public static bool open_RPTR603()
        {
            try
            {
                m_local_report_file = "RPTR334.rpt";
                Form ClientForm = new FMMN104();
                ClientForm.Tag = "RPTR603";
                ClientForm.Text = "Payment Slip";
                ClientForm.ShowDialog();
                return true;
            }
            catch (Exception e)
            {
                PCMSG.ShowError(e);
                return false;
            }
        }

        // REPORT 

        //public static bool open_RPTR102()
        //{
        //    try
        //    {
        //        m_local_report_file = "RPTR102.rpt";
        //        return true;
        //    }
        //    catch (Exception e)
        //    {
        //        PCMSG.ShowError(e);
        //        return false;
        //    }
        //}


    }

}
